InvertSelection Method

Summary
Inverts (if a cell is selected make it unselected and vice versa) the selection of the cell in the MedicalViewer control.
Syntax
C#
C++/CLI
public void InvertSelection() 
            public: 
void InvertSelection();  
Example

This example freezes the non selected cells.

C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.MedicalViewer; 
using Leadtools.ImageProcessing.Core; 
 
public void MedicalViewerCellCollectionInvertSelectionExample() 
{ 
   int index; 
   MedicalViewerForm myForm = GetMedicalControl(); 
   MedicalViewer medicalViewer = myForm.Viewer; 
 
   medicalViewer.Cells.FreezeAll(false); 
   for (index = 0; index < medicalViewer.Cells.Count; index++) 
      if ((index % 2) == 0) 
         medicalViewer.Cells[index].Selected = true; 
 
   medicalViewer.Cells.InvertSelection(); 
   medicalViewer.Cells.FreezeSelected(true); 
   myForm.ShowDialog(); 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.